package com.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.VisitorRegisterManage.dao.KeywordsMapper;
import com.VisitorRegisterManage.pojo.Keywords;

/** 
* @author Sunyelw yellowsunsna@foxmail.com 
* @version 创建时间：2018年1月7日 下午1:05:57 
* 类说明 
*/

@Controller
@RequestMapping(value="/ts",produces="text/html;charset=UTF-8")
public class TestFirst {

	@Autowired
	KeywordsMapper km;
	
	@RequestMapping(value="/t.do", produces="text/html;charset=UTF-8")
	@ResponseBody
	public String show(){

		km.insert(new Keywords("java", 1));
		
		return "test success!";
		
	}
	
}
